package org.example.Response;

public class ApiResponseUtil {
    public static <T> ApiResponse<T> success(T data) {
        return ApiResponse.success(data);
    }

    public static ApiResponse<Object> error(int code, String message) {
        return ApiResponse.error(code, message);
    }

    public static ApiResponse<Object> error(ApiResponseCode responseCode) {
        return ApiResponse.error(responseCode.getCode(), responseCode.getMessage());
    }

    public static ApiResponse<Object> error(String message) {
        return ApiResponse.error(ApiResponseCode.ERROR.getCode(), message);
    }
}
